<?php
    $this->headTitle($this->site_name.' - Profile');
?>
<style>
div .left-column {width:45%;float:left;margin-bottom:20px;}
div .right-column {width:45%;float:left;margin-left:20px;margin-bottom:20px;}
form dd {
    clear: both;
}
</style>
<script type="text/javascript" src="/js/jquery.validate.js"></script>
<script type="text/javascript">   
	$(document).ready(function(){
		if ($('#website').val()=='') $('#website').val('http://');
		
	    $("#Profile").validate({
		  rules: {
	        first_name: "required",
	        last_name: "required",
	        phone: "required",
	        company: "required",
	        address: "required",
	        city: "required",
	        state: "required",
	        zipcode: "required",
	        country: "required",
        	website: {
	    	  required:true,
	          url: true
	        },
        	phone: "required"
	      },
	      messages: {
	        first_name: {
	          required: "First Name is required"
	        },
	        last_name: {
		      required: "Last Name is required"
		    },
	        website: {
	          url: "Please input a valid url"
	        },
	        phone: {
	          required: "Phone is required"
	        },
	        company: {
			      required: "Company is required"
			},
			address: {
			      required: "Address is required"
			},
			city: {
			      required: "City is required"
			},
			state: {
			      required: "State is required"
			},
			zipcode: {
			      required: "Zipcode is required"
			},
			country: {
			      required: "Country is required"
			}
	      }
	    });
	});
</script>  
<?php if (!empty($this->success_msg)):?>
<div class="response-msg success ui-corner-all"><?php echo $this->success_msg;?></div>
<?php endif ?>

<?php if (!empty($this->error_msg)):?>
<div class="response-msg error ui-corner-all"><?php echo $this->error_msg;?></div>
<?php endif ?>

<div id="dashboard">

<h2>Profile</h2>
 


<div align=center style="font-size:13px;margin:20px 0;">
<div style="text-align:left;"></div>


<div style="width:600px;margin:40px 20px;">

        <div style="text-align:left;">

            <h3 style="text-align:center;">Account profile Information</h3>

            <?php //echo $this->form; ?>
			<form class="forms" id="<?php echo $this->form->getName();?>" name=<?php echo $this->form->getName();?> method="post" >

								<div>
										<div class="left-column">	
											<label class="desc" for="first_name">First Name</label>
											<div><?php echo $this->form->first_name;?></div>
										</div>
										
										<div class="right-column">					
											<label class="desc" for="last_name">Last Name</label>
								
											<div><?php echo $this->form->last_name;?></div>
										</div>
										<div class="clearfix"></div>
																		
										<div class="left-column">	
											<label class="desc" for="website">Website ( begin with http:// )</label>
											<div><?php echo $this->form->website;?></div>
										</div>
										
										<div class="right-column">					
											<label class="desc" for="phone">Phone</label>
											<div><?php echo $this->form->phone;?></div>
										</div>
										<div class="clearfix"></div>

										<div class="left-column">	
											<label class="desc" for="company">Company</label>
											<div><?php echo $this->form->company;?></div>
										</div>
										
										<div class="right-column">					
											<label class="desc" for="address">Address</label>
											<div><?php echo $this->form->address;?></div>
										</div>
										<div class="clearfix"></div>

										<div class="left-column">	
											<label class="desc" for="city">City</label>
											<div><?php echo $this->form->city;?></div>
										</div>
										
										<div class="right-column">					
											<label class="desc" for="state">State</label>
											<div><?php echo $this->form->state;?></div>
										</div>
										<div class="clearfix"></div>

										<div class="left-column">	
											<label class="desc" for="zipcode">Zipcode</label>
											<div><?php echo $this->form->zipcode;?></div>
										</div>
										
										<div class="right-column">					
											<label class="desc" for="country">Country</label>
											<div><?php echo $this->form->country;?></div>
										</div>
										<div class="clearfix"></div>
										
										<div class="left-column">	
											<label class="desc" for="timezone_id">Time Zone</label>
											<div><?php echo $this->form->timezone_id;?></div>
										</div>
										<?php echo $this->form->submit;?>
										<!--  input class="btn" type="submit"  id="submit" style="height:30px;font-size:14px;" value="submit"/-->
								</div>
			</form>

        </div>
</div>


</div>

</div>
